package com.gba.mark.elasticsearch.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor

    public class OriginESCn {
        @Id
        private Long id;

        @Field(type = FieldType.Integer)
        private Integer origin_id;

        @Field(type = FieldType.Keyword)
        private String source;

        @Field(type = FieldType.Keyword)
        private String language;

        @Field(type = FieldType.Text, analyzer = "hanlp_standard")
        private String sentence;

    }

